set(CMAKE_CXX_STANDARD 14)

find_package (Eigen3 REQUIRED NO_MODULE)
find_package(Sophus REQUIRED)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

find_package(Pangolin REQUIRED)
include_directories(${Pangolin_INCLUDE_DIRS})

set(DIRECT_METHOD_SRC
    main.cpp
    single_layer.cpp
    multi_layer.cpp
    accumulator.cpp
)

add_executable (run_direct_method ${DIRECT_METHOD_SRC})
target_link_libraries(run_direct_method
    ${OpenCV_LIBS} 
    Eigen3::Eigen
    Sophus::Sophus
    pango_display
)
